package service;

import domain.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

//这个地方一定要实现UserDetailService接口   这样的话  才可以将我们的数据给安排上
public interface IUserService extends UserDetailsService {

    List<UserInfo> findAll() throws Exception;

    void save(UserInfo userInfo) throws Exception;

    UserInfo findById(int userId) throws Exception;
}
